<?php
header('Content-Type: text/plain');

$directories = scandir('.');
$directories = array_diff($directories, array('.', '..', '.svn', '.git', '.idea', 'netbeans', 'out', '.tmp'));
foreach($directories as $d => $directory)
{
	if(!is_dir($directory))
	{
		continue;
	}

	$sql_file = "{$directory}/{$directory}.sql";
	if(!is_file($sql_file))
		continue;

	echo "\r\n", '-- ----', $sql_file, " ---- --\r\n\r\n";
	readfile($sql_file);
}
?>